﻿<UserControl x:Class="DarklandsCompanion.Views.SaintSearchView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <TextBox Grid.Column="0" Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged}" />
            <CheckBox Grid.Column="1" Content="Known only" IsChecked="{Binding KnownOnly}" VerticalAlignment="Center" />
        </Grid>
        <ScrollViewer Grid.Row="1" Template="{DynamicResource SlimScrollViewerControlTemplate}">
            <TextBox Text="{Binding Result}" AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" />
        </ScrollViewer>
    </Grid>
</UserControl>